package cn.bklovezz.yixiantong.ram.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 登录用户信息表记录定义
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginUserModel {

  @NotNull
  @ApiModelProperty("用户名")
  private String username;

  @NotNull
  @ApiModelProperty("密码")
  private String password;

  @ApiModelProperty("手机号")
  private String phone;

  @ApiModelProperty("邮箱")
  private String email;

  @ApiModelProperty("令牌")
  private String token;

  @ApiModelProperty("令牌过期时间")
  private LocalDateTime expireTime;

  @ApiModelProperty("用户头像")
  private String avatar;

  @ApiModelProperty("创建时间")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  private LocalDateTime updateTime;
}
